// 设计一个三角形
class Triangle{
    public double width;
    public double height;
    public Triangle(double w,double h){
        this.width = w;
        this.height = h;
    }
    public double getArea(){
        return width * height / 2;
    }
}